#ifndef DBMODULE_H
#define DBMODULE_H

#include "CPPLib.h"
#include "DBInstance.h"
#include "DBPort.h"

namespace DB
{
	class Instance;
	class Port;

	class Module
	{
	public:
		Module(std::string const &name);
		std::string const &getName()const;
		void addInstance(Instance &dbInstance);
		void addPort(Port const &dbPort);
	private:
		Module(Module const &dbModule);
	
		std::string m_name;
		std::map<std::string, Instance const *> m_instances;
		std::map<std::string, Port const *> m_ports;
	};
}
#endif
